package com.recruit.wechat.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author 肖守凯
 * @since 2020-08-24
 */
@Data
@TableName("wechat_position_collection")
@ApiModel(value="WechatPositionCollection对象", description="")
public class WechatPositionCollection extends Model<WechatPositionCollection> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "职位收藏ID")
    @TableId(value = "posi_collection_id", type = IdType.AUTO)
    private Integer posiCollectionId;

    @ApiModelProperty(value = "企业id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "职位id")
    @TableField("position_id")
    private Integer positionId;

    @ApiModelProperty(value = "收藏时间")
    @TableField("collection_time")
    private String collectionTime;

    @ApiModelProperty(value = "状态码 0 已经收藏/1取消收藏")
    @TableField("status")
    private Integer status;

    @TableField(exist = false)
    private String industryName;  //搜藏的职位名称

    @TableField(exist = false)
    private String companyName; //公司名字

    public Integer getPosiCollectionId() {
        return posiCollectionId;
    }

    public void setPosiCollectionId(Integer posiCollectionId) {
        this.posiCollectionId = posiCollectionId;
    }
    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }
    public Integer getPositionId() {
        return positionId;
    }

    public void setPositionId(Integer positionId) {
        this.positionId = positionId;
    }
    public String getCollectionTime() {
        return collectionTime;
    }

    public void setCollectionTime(String collectionTime) {
        this.collectionTime = collectionTime;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.posiCollectionId;
    }

    @Override
    public String toString() {
        return "WechatPositionCollection{" +
            "posiCollectionId=" + posiCollectionId +
            ", companyId=" + companyId +
            ", positionId=" + positionId +
            ", collectionTime=" + collectionTime +
            ", status=" + status +
        "}";
    }
}
